package it.blueocean.acanto.platform.web.administration;

import java.util.ArrayList;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class AdministrationController
{
	private final static Logger logger = LoggerFactory.getLogger(AdministrationController.class);
	
	@RequestMapping(method = RequestMethod.GET, value = "/administration.htm")
	@Secured("ROLE_ADMINISTRATOR")
	public ModelAndView administrationView()
	{
		logger.info("invoked administration.htm");
		
		ModelAndView mav = new ModelAndView("secure/extreme/index");
		mav.addObject("enabledPeople", new ArrayList<String>());
		mav.addObject("disabledPeople", new ArrayList<String>());
		
		return mav;
	}
}
